import request from '@/utils/request'

// 查询个人评优评先类别列表
export function listType(query) {
  return request({
    url: '/comprehensive/OwnGoodtype/list',
    method: 'get',
    params: query
  })
}

// 查询个人评优评先类别详细
export function getType(id) {
  return request({
    url: '/comprehensive/OwnGoodtype/' + id,
    method: 'get'
  })
}

// 新增个人评优评先类别
export function addType(data) {
  return request({
    url: '/comprehensive/OwnGoodtype',
    method: 'post',
    data: data
  })
}

// 修改个人评优评先类别
export function updateType(data) {
  return request({
    url: '/comprehensive/OwnGoodtype/update',
    method: 'post',
    data: data
  })
}

// 删除个人评优评先类别
export function delType(id) {
  return request({
    url: '/comprehensive/OwnGoodtype/delete' + id,
    method: 'post'
  })
}
